package com.droowa.domain;

import java.io.Serializable;

public class OrderInfo implements Serializable{
	
	private int orderNumber;
	private String orderName;
	private String orderPhone;
	private String orderAddress;
	private String orderEmail;
	
	private String receiverName;
	private String receiverPhone;
	private String receiverAddress;
	private String receiverEmail;
	
	private String bank;
	private String depositName;
	private String depositPhone;
	
	private String card;
	private String cardNumber;
	private String cardPassword;
	private String completeId;
	
	
	public OrderInfo() {
		super();
	}


	public OrderInfo(int orderNumber, String orderName, String orderPhone,
			String orderAddress, String orderEmail, String receiverName,
			String receiverPhone, String receiverAddress, String receiverEmail,
			String bank, String depositName, String depositPhone, String card,
			String cardNumber, String cardPassword, String completeId) {
		super();
		this.orderNumber = orderNumber;
		this.orderName = orderName;
		this.orderPhone = orderPhone;
		this.orderAddress = orderAddress;
		this.orderEmail = orderEmail;
		this.receiverName = receiverName;
		this.receiverPhone = receiverPhone;
		this.receiverAddress = receiverAddress;
		this.receiverEmail = receiverEmail;
		this.bank = bank;
		this.depositName = depositName;
		this.depositPhone = depositPhone;
		this.card = card;
		this.cardNumber = cardNumber;
		this.cardPassword = cardPassword;
		this.completeId = completeId;
	}


	/**
	 * @return the orderNumber
	 */
	public int getOrderNumber() {
		return orderNumber;
	}


	/**
	 * @param orderNumber the orderNumber to set
	 */
	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}


	/**
	 * @return the orderName
	 */
	public String getOrderName() {
		return orderName;
	}


	/**
	 * @param orderName the orderName to set
	 */
	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}


	/**
	 * @return the orderPhone
	 */
	public String getOrderPhone() {
		return orderPhone;
	}


	/**
	 * @param orderPhone the orderPhone to set
	 */
	public void setOrderPhone(String orderPhone) {
		this.orderPhone = orderPhone;
	}


	/**
	 * @return the orderAddress
	 */
	public String getOrderAddress() {
		return orderAddress;
	}


	/**
	 * @param orderAddress the orderAddress to set
	 */
	public void setOrderAddress(String orderAddress) {
		this.orderAddress = orderAddress;
	}


	/**
	 * @return the orderEmail
	 */
	public String getOrderEmail() {
		return orderEmail;
	}


	/**
	 * @param orderEmail the orderEmail to set
	 */
	public void setOrderEmail(String orderEmail) {
		this.orderEmail = orderEmail;
	}


	/**
	 * @return the receiverName
	 */
	public String getReceiverName() {
		return receiverName;
	}


	/**
	 * @param receiverName the receiverName to set
	 */
	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}


	/**
	 * @return the receiverPhone
	 */
	public String getReceiverPhone() {
		return receiverPhone;
	}


	/**
	 * @param receiverPhone the receiverPhone to set
	 */
	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}


	/**
	 * @return the receiverAddress
	 */
	public String getReceiverAddress() {
		return receiverAddress;
	}


	/**
	 * @param receiverAddress the receiverAddress to set
	 */
	public void setReceiverAddress(String receiverAddress) {
		this.receiverAddress = receiverAddress;
	}


	/**
	 * @return the receiverEmail
	 */
	public String getReceiverEmail() {
		return receiverEmail;
	}


	/**
	 * @param receiverEmail the receiverEmail to set
	 */
	public void setReceiverEmail(String receiverEmail) {
		this.receiverEmail = receiverEmail;
	}


	/**
	 * @return the bank
	 */
	public String getBank() {
		return bank;
	}


	/**
	 * @param bank the bank to set
	 */
	public void setBank(String bank) {
		this.bank = bank;
	}


	/**
	 * @return the depositName
	 */
	public String getDepositName() {
		return depositName;
	}


	/**
	 * @param depositName the depositName to set
	 */
	public void setDepositName(String depositName) {
		this.depositName = depositName;
	}


	/**
	 * @return the depositPhone
	 */
	public String getDepositPhone() {
		return depositPhone;
	}


	/**
	 * @param depositPhone the depositPhone to set
	 */
	public void setDepositPhone(String depositPhone) {
		this.depositPhone = depositPhone;
	}


	/**
	 * @return the card
	 */
	public String getCard() {
		return card;
	}


	/**
	 * @param card the card to set
	 */
	public void setCard(String card) {
		this.card = card;
	}


	/**
	 * @return the cardNumber
	 */
	public String getCardNumber() {
		return cardNumber;
	}


	/**
	 * @param cardNumber the cardNumber to set
	 */
	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}


	/**
	 * @return the cardPassword
	 */
	public String getCardPassword() {
		return cardPassword;
	}


	/**
	 * @param cardPassword the cardPassword to set
	 */
	public void setCardPassword(String cardPassword) {
		this.cardPassword = cardPassword;
	}


	/**
	 * @return the completeId
	 */
	public String getCompleteId() {
		return completeId;
	}


	/**
	 * @param completeId the completeId to set
	 */
	public void setCompleteId(String completeId) {
		this.completeId = completeId;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "OrderInfo [orderNumber=" + orderNumber + ", orderName="
				+ orderName + ", orderPhone=" + orderPhone + ", orderAddress="
				+ orderAddress + ", orderEmail=" + orderEmail
				+ ", receiverName=" + receiverName + ", receiverPhone="
				+ receiverPhone + ", receiverAddress=" + receiverAddress
				+ ", receiverEmail=" + receiverEmail + ", bank=" + bank
				+ ", depositName=" + depositName + ", depositPhone="
				+ depositPhone + ", card=" + card + ", cardNumber="
				+ cardNumber + ", cardPassword=" + cardPassword
				+ ", completeId=" + completeId + "]";
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((bank == null) ? 0 : bank.hashCode());
		result = prime * result + ((card == null) ? 0 : card.hashCode());
		result = prime * result
				+ ((cardNumber == null) ? 0 : cardNumber.hashCode());
		result = prime * result
				+ ((cardPassword == null) ? 0 : cardPassword.hashCode());
		result = prime * result
				+ ((completeId == null) ? 0 : completeId.hashCode());
		result = prime * result
				+ ((depositName == null) ? 0 : depositName.hashCode());
		result = prime * result
				+ ((depositPhone == null) ? 0 : depositPhone.hashCode());
		result = prime * result
				+ ((orderAddress == null) ? 0 : orderAddress.hashCode());
		result = prime * result
				+ ((orderEmail == null) ? 0 : orderEmail.hashCode());
		result = prime * result
				+ ((orderName == null) ? 0 : orderName.hashCode());
		result = prime * result + orderNumber;
		result = prime * result
				+ ((orderPhone == null) ? 0 : orderPhone.hashCode());
		result = prime * result
				+ ((receiverAddress == null) ? 0 : receiverAddress.hashCode());
		result = prime * result
				+ ((receiverEmail == null) ? 0 : receiverEmail.hashCode());
		result = prime * result
				+ ((receiverName == null) ? 0 : receiverName.hashCode());
		result = prime * result
				+ ((receiverPhone == null) ? 0 : receiverPhone.hashCode());
		return result;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		OrderInfo other = (OrderInfo) obj;
		if (bank == null) {
			if (other.bank != null) {
				return false;
			}
		} else if (!bank.equals(other.bank)) {
			return false;
		}
		if (card == null) {
			if (other.card != null) {
				return false;
			}
		} else if (!card.equals(other.card)) {
			return false;
		}
		if (cardNumber == null) {
			if (other.cardNumber != null) {
				return false;
			}
		} else if (!cardNumber.equals(other.cardNumber)) {
			return false;
		}
		if (cardPassword == null) {
			if (other.cardPassword != null) {
				return false;
			}
		} else if (!cardPassword.equals(other.cardPassword)) {
			return false;
		}
		if (completeId == null) {
			if (other.completeId != null) {
				return false;
			}
		} else if (!completeId.equals(other.completeId)) {
			return false;
		}
		if (depositName == null) {
			if (other.depositName != null) {
				return false;
			}
		} else if (!depositName.equals(other.depositName)) {
			return false;
		}
		if (depositPhone == null) {
			if (other.depositPhone != null) {
				return false;
			}
		} else if (!depositPhone.equals(other.depositPhone)) {
			return false;
		}
		if (orderAddress == null) {
			if (other.orderAddress != null) {
				return false;
			}
		} else if (!orderAddress.equals(other.orderAddress)) {
			return false;
		}
		if (orderEmail == null) {
			if (other.orderEmail != null) {
				return false;
			}
		} else if (!orderEmail.equals(other.orderEmail)) {
			return false;
		}
		if (orderName == null) {
			if (other.orderName != null) {
				return false;
			}
		} else if (!orderName.equals(other.orderName)) {
			return false;
		}
		if (orderNumber != other.orderNumber) {
			return false;
		}
		if (orderPhone == null) {
			if (other.orderPhone != null) {
				return false;
			}
		} else if (!orderPhone.equals(other.orderPhone)) {
			return false;
		}
		if (receiverAddress == null) {
			if (other.receiverAddress != null) {
				return false;
			}
		} else if (!receiverAddress.equals(other.receiverAddress)) {
			return false;
		}
		if (receiverEmail == null) {
			if (other.receiverEmail != null) {
				return false;
			}
		} else if (!receiverEmail.equals(other.receiverEmail)) {
			return false;
		}
		if (receiverName == null) {
			if (other.receiverName != null) {
				return false;
			}
		} else if (!receiverName.equals(other.receiverName)) {
			return false;
		}
		if (receiverPhone == null) {
			if (other.receiverPhone != null) {
				return false;
			}
		} else if (!receiverPhone.equals(other.receiverPhone)) {
			return false;
		}
		return true;
	}
	
	
}
